package com.knowvoyage.knowvoyageserver.mapper;

import com.knowvoyage.knowvoyageserver.pojo.entity.ErrorBook;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface ErrorBookMapper {
    void insert(ErrorBook errorBook);
    void delete(Long ookId);
    void update(ErrorBook errorBook);
    ErrorBook selectById(Long bookId);
    List<ErrorBook> selectByUserId(Long userId);
    ErrorBook selectByName(String bookName);

    List<ErrorBook> selectByIds(ArrayList<Long> longs);
}
